LET DAY$(1) = "Monday"
PRINT "The day is", DAY$(1)

Answer:

The program writes out:

The day is    Monday

Asking for an Array

Tell QBasic how many items are in your array like this:

DIM arrayName( 1 TO size )

DIM asks for an array. The arrayName is the name of the array. It will have subscripts 1, 2, 3, 4, ... up to size.

Here is how to ask for an array named DAY$ that holds strings numbered from one to seven:

DIM DAY$( 1 TO 7 )

QUESTION 5:

If DAY$ is as above, is the following statement correct?

DAY$(8) = "Memorial Day"